package com.easy.zhihu.util;

import java.nio.charset.StandardCharsets;
import java.util.Base64;

/**
 * @Packge com.easy.zhihu.util
 * @Autor naibin.lin
 * @Description
 * @Version 1.0
 * @Date 2022-10-27 10:58
 */
public class ArrayTest {

    public static void main(String[] args) {
        //  YWRtaW46ODg4ODg4
        String str = Base64.getEncoder().encodeToString("admin:888888".getBytes(StandardCharsets.UTF_8));

        System.out.println(str);
    }
}
